.msg-container {
  overflow: hidden;
  width: 414px;
  max-width: 100vw;
  margin: 0 auto;
  background-color: #ebebeb;
  .msg-header {
    font-weight: bold;
    line-height: 48px;
    margin-bottom: 10px;
    text-align: center;
    color: #fff;
    background-color: #222;
  }
}
.msg-item {
  display: flex;
  margin-bottom: 2px;
  padding: 7px;
  margin-inline-end: 40px;
}
.msg-avator {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.msg-info {
  overflow: hidden;
  flex: 1;
  padding: 0 10px;
  text-align: start;
}
.msg-user {
  font-size: 13px;
  color: #949ead;
}
.msg-txt {
  font-size: 14px;
  line-height: 1.5;
  position: relative;
  width: fit-content;
  margin: 5px 0 0;
  padding: 0.6em 1em;
  color: #000;
  border-color: #fff;
  border-radius: 6px;
  background: #fff;
  > p {
    margin: 0;
  }
  &::before {
    position: absolute;
    top: 4px;
    content: '';
    border: 8px solid transparent;
    border-top-color: inherit;
    border-inline-end-color: inherit;
    margin-inline-start: -22px;
  }
}

.isMe {
  direction: rtl;
  .msg-txt {
    border-color: #9ce553;
    background: #9ce553;
  }
}
